Cardano Pythathon: Factura Ya — Invoice Factoring Marketplace#97
Open
qmarquez wants to merge 8 commits intopyth-network:mainfrom
Open
Cardano Pythathon: Factura Ya — Invoice Factoring Marketplace#97qmarquez wants to merge 8 commits intopyth-network:mainfrom
qmarquez wants to merge 8 commits intopyth-network:mainfrom
Conversation
Hackathon submission for the Cardano Pythathon. Factura Ya is an on-chain invoice factoring marketplace on Cardano. SMEs tokenize outstanding invoices as NFTs, deposit collateral, and sell collection rights to investors at a discount. Pyth's ADA/USD price feed provides real-time currency conversion. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pyth Examples Contribution
Team Name: Facturas Ya
Submission Name: Factura Ya
Team Members: Dario Fasolino, Macarena Carabajal
Contact: dario.a.fasolino@gmail.com, macacarabajal3@gmail.com
Type of Contribution
Project Information
Project/Example Name: Factura Ya
Pyth Product Used:
Blockchain/Platform:
Description
What does this contribution do?
Factura Ya is an on-chain invoice factoring marketplace built on Cardano. Latin American SMEs tokenize their outstanding invoices as NFTs, deposit collateral as a good-faith guarantee, and sell the collection rights to investors at a discount. The SME gets paid immediately; the investor collects the full amount at maturity.
How does it integrate with Pyth?
Pyth is central to the entire valuation pipeline:
pyth_oracle.akcallspyth.get_updates()to read the verified ADA/USD price feed (feed ID 16) from the Pyth withdraw-script redeemer. Price freshness is enforced (max 60s).usd_to_lovelace()converts invoice values using the real-time price.PythPriceClientsubscribes to Pyth Pro WebSocket for live updates. Transaction construction uses@pythnetwork/pyth-lazer-cardano-js(getPythState(),getPythScriptHash()) with the PreProd Policy IDd799d287105dea9377cdf9ea8502a83d2b9eb2d2050a8aea800a21e6.What problem does it solve or demonstrate?
SMEs in Argentina wait 60-90 days to collect on invoices. Traditional factoring charges 3-5% monthly. Factura Ya enables instant liquidity through on-chain invoice tokenization with transparent pricing powered by Pyth oracles — no banks, no intermediaries.
Architecture
Testing & Verification
Prerequisites
Setup & Run Instructions
Deployment Information
Target network: Cardano PreProd
Pyth Policy ID: d799d287105dea9377cdf9ea8502a83d2b9eb2d2050a8aea800a21e6
Checklist
Code Quality
Testing
Notes for Reviewers
Hackathon submission for the Cardano Pythathon (2026-03-22). This creates the first lazer/cardano/ directory in the repo.